#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (Common)
+ (NSString *)md5String:(NSString *)str;
- (NSString *)md5;
-(NSString*)firstPinYin;
+ (BOOL)isEmpty:(NSString *)string;
+(BOOL)compareVerison:(NSString *)sourVersion withDes:(NSString *)desVersion;
- (BOOL)isWhitespaceAndNewlines;
- (NSString *)trim;
- (NSString *)removeWhiteSpace;
- (NSString *)removeNewLine;
- (NSString *)stringByUrlEncoding;
- (NSString *)capitalize;
- (BOOL)startsWith:(NSString *)str;
- (BOOL)startsWith:(NSString *)str Options:(NSStringCompareOptions)compareOptions;
- (BOOL)endsWith:(NSString *)str;
- (BOOL)endsWith:(NSString *)str Options:(NSStringCompareOptions)compareOptions;
- (BOOL)containsString:(NSString *)str;
- (BOOL)containsString:(NSString *)str Options:(NSStringCompareOptions)compareOptions;
- (BOOL)equalsString:(NSString *)str;
- (NSString *)emjoiText;
#pragma mark Hashing
#if kSupportGTM64
- (NSString *)base64Encoding;
#endif
- (NSString *)valueOfLabel:(NSString *)label;
- (NSString *)substringAtRange:(NSRange)rang;
- (NSUInteger)utf8Length;
- (BOOL)isContainsEmoji;
- (NSString *)cutBeyondTextInLength:(NSInteger)maxLenth;
- (CGSize)textSizeIn:(CGSize)size font:(UIFont *)font;
- (CGSize)textSizeIn:(CGSize)size font:(UIFont *)font breakMode:(NSLineBreakMode)breakMode;
- (CGSize)textSizeIn:(CGSize)size font:(UIFont *)font breakMode:(NSLineBreakMode)breakMode align:(NSTextAlignment)alignment;
@end
